package com.lpx.blog.dto;

import com.lpx.blog.annoation.ValidUsernameOrEmail;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Author: ColorSheep
 * @Description: TODO
 * @Date: 2024/11/21 13:38
 * @Version: 1.0
 */
@Data
@ValidUsernameOrEmail
public class UserLoginDTO implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;

	private String username = "";
	@NotEmpty(message = "密码不能为空")
	private String password;
	@Email(message = "邮箱格式不正确")
	private String email = "";
}
